/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.upms.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2024-05-07
 * @version 1.0
 * @since 1.0
 */
public class UpmsRuleSqlBuilder extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static UpmsRuleSqlBuilder create() {
		return new UpmsRuleSqlBuilder();
	}
	
	public static UpmsRuleSqlBuilder create(Column column) {
		UpmsRuleSqlBuilder that = new UpmsRuleSqlBuilder();
		that.add(column);
        return that;
    }

    public static UpmsRuleSqlBuilder create(String name, Object value) {
        return (UpmsRuleSqlBuilder) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("upms_rule", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public UpmsRuleSqlBuilder eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public UpmsRuleSqlBuilder ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public UpmsRuleSqlBuilder like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public UpmsRuleSqlBuilder notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public UpmsRuleSqlBuilder gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UpmsRuleSqlBuilder ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public UpmsRuleSqlBuilder lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UpmsRuleSqlBuilder le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public UpmsRuleSqlBuilder isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public UpmsRuleSqlBuilder notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public UpmsRuleSqlBuilder empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public UpmsRuleSqlBuilder notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public UpmsRuleSqlBuilder add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public UpmsRuleSqlBuilder andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public UpmsRuleSqlBuilder andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public UpmsRuleSqlBuilder andIdIsEmpty() {
		empty("id");
		return this;
	}

	public UpmsRuleSqlBuilder andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public UpmsRuleSqlBuilder andIdEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andIdNotEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andIdGreaterThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andIdLessThan(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Long", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Long", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Long", "Float");
    	  return this;
      }

      public UpmsRuleSqlBuilder andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Long", "Float");
          return this;
      }
        
      public UpmsRuleSqlBuilder andIdIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Long", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andIdNotIn(List<java.lang.Long> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Long", "Float");
          return this;
      }
	public UpmsRuleSqlBuilder andRuleNameIsNull() {
		isnull("rule_name");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleNameIsNotNull() {
		notNull("rule_name");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleNameIsEmpty() {
		empty("rule_name");
		return this;
	}

	public UpmsRuleSqlBuilder andRuleNameIsNotEmpty() {
		notEmpty("rule_name");
		return this;
	}
        public UpmsRuleSqlBuilder andRuleNameLike(java.lang.String value) {
    	   addCriterion("rule_name", value, ConditionMode.FUZZY, "ruleName", "java.lang.String", "Float");
    	   return this;
      }

      public UpmsRuleSqlBuilder andRuleNameNotLike(java.lang.String value) {
          addCriterion("rule_name", value, ConditionMode.NOT_FUZZY, "ruleName", "java.lang.String", "Float");
          return this;
      }
      public UpmsRuleSqlBuilder andRuleNameEqualTo(java.lang.String value) {
          addCriterion("rule_name", value, ConditionMode.EQUAL, "ruleName", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleNameNotEqualTo(java.lang.String value) {
          addCriterion("rule_name", value, ConditionMode.NOT_EQUAL, "ruleName", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleNameGreaterThan(java.lang.String value) {
          addCriterion("rule_name", value, ConditionMode.GREATER_THEN, "ruleName", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("rule_name", value, ConditionMode.GREATER_EQUAL, "ruleName", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleNameLessThan(java.lang.String value) {
          addCriterion("rule_name", value, ConditionMode.LESS_THEN, "ruleName", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("rule_name", value, ConditionMode.LESS_EQUAL, "ruleName", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("rule_name", value1, value2, ConditionMode.BETWEEN, "ruleName", "java.lang.String", "String");
    	  return this;
      }

      public UpmsRuleSqlBuilder andRuleNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("rule_name", value1, value2, ConditionMode.NOT_BETWEEN, "ruleName", "java.lang.String", "String");
          return this;
      }
        
      public UpmsRuleSqlBuilder andRuleNameIn(List<java.lang.String> values) {
          addCriterion("rule_name", values, ConditionMode.IN, "ruleName", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleNameNotIn(List<java.lang.String> values) {
          addCriterion("rule_name", values, ConditionMode.NOT_IN, "ruleName", "java.lang.String", "String");
          return this;
      }
	public UpmsRuleSqlBuilder andRuleCodeIsNull() {
		isnull("rule_code");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleCodeIsNotNull() {
		notNull("rule_code");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleCodeIsEmpty() {
		empty("rule_code");
		return this;
	}

	public UpmsRuleSqlBuilder andRuleCodeIsNotEmpty() {
		notEmpty("rule_code");
		return this;
	}
        public UpmsRuleSqlBuilder andRuleCodeLike(java.lang.String value) {
    	   addCriterion("rule_code", value, ConditionMode.FUZZY, "ruleCode", "java.lang.String", "String");
    	   return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeNotLike(java.lang.String value) {
          addCriterion("rule_code", value, ConditionMode.NOT_FUZZY, "ruleCode", "java.lang.String", "String");
          return this;
      }
      public UpmsRuleSqlBuilder andRuleCodeEqualTo(java.lang.String value) {
          addCriterion("rule_code", value, ConditionMode.EQUAL, "ruleCode", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeNotEqualTo(java.lang.String value) {
          addCriterion("rule_code", value, ConditionMode.NOT_EQUAL, "ruleCode", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeGreaterThan(java.lang.String value) {
          addCriterion("rule_code", value, ConditionMode.GREATER_THEN, "ruleCode", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("rule_code", value, ConditionMode.GREATER_EQUAL, "ruleCode", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeLessThan(java.lang.String value) {
          addCriterion("rule_code", value, ConditionMode.LESS_THEN, "ruleCode", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeLessThanOrEqualTo(java.lang.String value) {
          addCriterion("rule_code", value, ConditionMode.LESS_EQUAL, "ruleCode", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("rule_code", value1, value2, ConditionMode.BETWEEN, "ruleCode", "java.lang.String", "String");
    	  return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("rule_code", value1, value2, ConditionMode.NOT_BETWEEN, "ruleCode", "java.lang.String", "String");
          return this;
      }
        
      public UpmsRuleSqlBuilder andRuleCodeIn(List<java.lang.String> values) {
          addCriterion("rule_code", values, ConditionMode.IN, "ruleCode", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleCodeNotIn(List<java.lang.String> values) {
          addCriterion("rule_code", values, ConditionMode.NOT_IN, "ruleCode", "java.lang.String", "String");
          return this;
      }
	public UpmsRuleSqlBuilder andCreateTimeIsNull() {
		isnull("create_time");
		return this;
	}
	
	public UpmsRuleSqlBuilder andCreateTimeIsNotNull() {
		notNull("create_time");
		return this;
	}
	
	public UpmsRuleSqlBuilder andCreateTimeIsEmpty() {
		empty("create_time");
		return this;
	}

	public UpmsRuleSqlBuilder andCreateTimeIsNotEmpty() {
		notEmpty("create_time");
		return this;
	}
       public UpmsRuleSqlBuilder andCreateTimeEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeNotEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.NOT_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeGreaterThan(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.GREATER_THEN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.GREATER_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeLessThan(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.LESS_THEN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeLessThanOrEqualTo(java.util.Date value) {
          addCriterion("create_time", value, ConditionMode.LESS_EQUAL, "createTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("create_time", value1, value2, ConditionMode.BETWEEN, "createTime", "java.util.Date", "String");
    	  return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("create_time", value1, value2, ConditionMode.NOT_BETWEEN, "createTime", "java.util.Date", "String");
          return this;
      }
        
      public UpmsRuleSqlBuilder andCreateTimeIn(List<java.util.Date> values) {
          addCriterion("create_time", values, ConditionMode.IN, "createTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andCreateTimeNotIn(List<java.util.Date> values) {
          addCriterion("create_time", values, ConditionMode.NOT_IN, "createTime", "java.util.Date", "String");
          return this;
      }
	public UpmsRuleSqlBuilder andUpdateTimeIsNull() {
		isnull("update_time");
		return this;
	}
	
	public UpmsRuleSqlBuilder andUpdateTimeIsNotNull() {
		notNull("update_time");
		return this;
	}
	
	public UpmsRuleSqlBuilder andUpdateTimeIsEmpty() {
		empty("update_time");
		return this;
	}

	public UpmsRuleSqlBuilder andUpdateTimeIsNotEmpty() {
		notEmpty("update_time");
		return this;
	}
       public UpmsRuleSqlBuilder andUpdateTimeEqualTo(java.util.Date value) {
          addCriterion("update_time", value, ConditionMode.EQUAL, "updateTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeNotEqualTo(java.util.Date value) {
          addCriterion("update_time", value, ConditionMode.NOT_EQUAL, "updateTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeGreaterThan(java.util.Date value) {
          addCriterion("update_time", value, ConditionMode.GREATER_THEN, "updateTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeGreaterThanOrEqualTo(java.util.Date value) {
          addCriterion("update_time", value, ConditionMode.GREATER_EQUAL, "updateTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeLessThan(java.util.Date value) {
          addCriterion("update_time", value, ConditionMode.LESS_THEN, "updateTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeLessThanOrEqualTo(java.util.Date value) {
          addCriterion("update_time", value, ConditionMode.LESS_EQUAL, "updateTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeBetween(java.util.Date value1, java.util.Date value2) {
    	  addCriterion("update_time", value1, value2, ConditionMode.BETWEEN, "updateTime", "java.util.Date", "String");
    	  return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeNotBetween(java.util.Date value1, java.util.Date value2) {
          addCriterion("update_time", value1, value2, ConditionMode.NOT_BETWEEN, "updateTime", "java.util.Date", "String");
          return this;
      }
        
      public UpmsRuleSqlBuilder andUpdateTimeIn(List<java.util.Date> values) {
          addCriterion("update_time", values, ConditionMode.IN, "updateTime", "java.util.Date", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUpdateTimeNotIn(List<java.util.Date> values) {
          addCriterion("update_time", values, ConditionMode.NOT_IN, "updateTime", "java.util.Date", "String");
          return this;
      }
	public UpmsRuleSqlBuilder andRemarksIsNull() {
		isnull("remarks");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRemarksIsNotNull() {
		notNull("remarks");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRemarksIsEmpty() {
		empty("remarks");
		return this;
	}

	public UpmsRuleSqlBuilder andRemarksIsNotEmpty() {
		notEmpty("remarks");
		return this;
	}
        public UpmsRuleSqlBuilder andRemarksLike(java.lang.String value) {
    	   addCriterion("remarks", value, ConditionMode.FUZZY, "remarks", "java.lang.String", "String");
    	   return this;
      }

      public UpmsRuleSqlBuilder andRemarksNotLike(java.lang.String value) {
          addCriterion("remarks", value, ConditionMode.NOT_FUZZY, "remarks", "java.lang.String", "String");
          return this;
      }
      public UpmsRuleSqlBuilder andRemarksEqualTo(java.lang.String value) {
          addCriterion("remarks", value, ConditionMode.EQUAL, "remarks", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRemarksNotEqualTo(java.lang.String value) {
          addCriterion("remarks", value, ConditionMode.NOT_EQUAL, "remarks", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRemarksGreaterThan(java.lang.String value) {
          addCriterion("remarks", value, ConditionMode.GREATER_THEN, "remarks", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRemarksGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("remarks", value, ConditionMode.GREATER_EQUAL, "remarks", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRemarksLessThan(java.lang.String value) {
          addCriterion("remarks", value, ConditionMode.LESS_THEN, "remarks", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRemarksLessThanOrEqualTo(java.lang.String value) {
          addCriterion("remarks", value, ConditionMode.LESS_EQUAL, "remarks", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRemarksBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("remarks", value1, value2, ConditionMode.BETWEEN, "remarks", "java.lang.String", "String");
    	  return this;
      }

      public UpmsRuleSqlBuilder andRemarksNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("remarks", value1, value2, ConditionMode.NOT_BETWEEN, "remarks", "java.lang.String", "String");
          return this;
      }
        
      public UpmsRuleSqlBuilder andRemarksIn(List<java.lang.String> values) {
          addCriterion("remarks", values, ConditionMode.IN, "remarks", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRemarksNotIn(List<java.lang.String> values) {
          addCriterion("remarks", values, ConditionMode.NOT_IN, "remarks", "java.lang.String", "String");
          return this;
      }
	public UpmsRuleSqlBuilder andRuleTypeIsNull() {
		isnull("rule_type");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleTypeIsNotNull() {
		notNull("rule_type");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleTypeIsEmpty() {
		empty("rule_type");
		return this;
	}

	public UpmsRuleSqlBuilder andRuleTypeIsNotEmpty() {
		notEmpty("rule_type");
		return this;
	}
       public UpmsRuleSqlBuilder andRuleTypeEqualTo(java.lang.Integer value) {
          addCriterion("rule_type", value, ConditionMode.EQUAL, "ruleType", "java.lang.Integer", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeNotEqualTo(java.lang.Integer value) {
          addCriterion("rule_type", value, ConditionMode.NOT_EQUAL, "ruleType", "java.lang.Integer", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeGreaterThan(java.lang.Integer value) {
          addCriterion("rule_type", value, ConditionMode.GREATER_THEN, "ruleType", "java.lang.Integer", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("rule_type", value, ConditionMode.GREATER_EQUAL, "ruleType", "java.lang.Integer", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeLessThan(java.lang.Integer value) {
          addCriterion("rule_type", value, ConditionMode.LESS_THEN, "ruleType", "java.lang.Integer", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("rule_type", value, ConditionMode.LESS_EQUAL, "ruleType", "java.lang.Integer", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("rule_type", value1, value2, ConditionMode.BETWEEN, "ruleType", "java.lang.Integer", "Float");
    	  return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("rule_type", value1, value2, ConditionMode.NOT_BETWEEN, "ruleType", "java.lang.Integer", "Float");
          return this;
      }
        
      public UpmsRuleSqlBuilder andRuleTypeIn(List<java.lang.Integer> values) {
          addCriterion("rule_type", values, ConditionMode.IN, "ruleType", "java.lang.Integer", "Float");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleTypeNotIn(List<java.lang.Integer> values) {
          addCriterion("rule_type", values, ConditionMode.NOT_IN, "ruleType", "java.lang.Integer", "Float");
          return this;
      }
	public UpmsRuleSqlBuilder andRuleContentIsNull() {
		isnull("rule_content");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleContentIsNotNull() {
		notNull("rule_content");
		return this;
	}
	
	public UpmsRuleSqlBuilder andRuleContentIsEmpty() {
		empty("rule_content");
		return this;
	}

	public UpmsRuleSqlBuilder andRuleContentIsNotEmpty() {
		notEmpty("rule_content");
		return this;
	}
        public UpmsRuleSqlBuilder andRuleContentLike(java.lang.String value) {
    	   addCriterion("rule_content", value, ConditionMode.FUZZY, "ruleContent", "java.lang.String", "Float");
    	   return this;
      }

      public UpmsRuleSqlBuilder andRuleContentNotLike(java.lang.String value) {
          addCriterion("rule_content", value, ConditionMode.NOT_FUZZY, "ruleContent", "java.lang.String", "Float");
          return this;
      }
      public UpmsRuleSqlBuilder andRuleContentEqualTo(java.lang.String value) {
          addCriterion("rule_content", value, ConditionMode.EQUAL, "ruleContent", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleContentNotEqualTo(java.lang.String value) {
          addCriterion("rule_content", value, ConditionMode.NOT_EQUAL, "ruleContent", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleContentGreaterThan(java.lang.String value) {
          addCriterion("rule_content", value, ConditionMode.GREATER_THEN, "ruleContent", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleContentGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("rule_content", value, ConditionMode.GREATER_EQUAL, "ruleContent", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleContentLessThan(java.lang.String value) {
          addCriterion("rule_content", value, ConditionMode.LESS_THEN, "ruleContent", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleContentLessThanOrEqualTo(java.lang.String value) {
          addCriterion("rule_content", value, ConditionMode.LESS_EQUAL, "ruleContent", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleContentBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("rule_content", value1, value2, ConditionMode.BETWEEN, "ruleContent", "java.lang.String", "String");
    	  return this;
      }

      public UpmsRuleSqlBuilder andRuleContentNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("rule_content", value1, value2, ConditionMode.NOT_BETWEEN, "ruleContent", "java.lang.String", "String");
          return this;
      }
        
      public UpmsRuleSqlBuilder andRuleContentIn(List<java.lang.String> values) {
          addCriterion("rule_content", values, ConditionMode.IN, "ruleContent", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andRuleContentNotIn(List<java.lang.String> values) {
          addCriterion("rule_content", values, ConditionMode.NOT_IN, "ruleContent", "java.lang.String", "String");
          return this;
      }
	public UpmsRuleSqlBuilder andUrlIsNull() {
		isnull("url");
		return this;
	}
	
	public UpmsRuleSqlBuilder andUrlIsNotNull() {
		notNull("url");
		return this;
	}
	
	public UpmsRuleSqlBuilder andUrlIsEmpty() {
		empty("url");
		return this;
	}

	public UpmsRuleSqlBuilder andUrlIsNotEmpty() {
		notEmpty("url");
		return this;
	}
        public UpmsRuleSqlBuilder andUrlLike(java.lang.String value) {
    	   addCriterion("url", value, ConditionMode.FUZZY, "url", "java.lang.String", "String");
    	   return this;
      }

      public UpmsRuleSqlBuilder andUrlNotLike(java.lang.String value) {
          addCriterion("url", value, ConditionMode.NOT_FUZZY, "url", "java.lang.String", "String");
          return this;
      }
      public UpmsRuleSqlBuilder andUrlEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUrlNotEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.NOT_EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUrlGreaterThan(java.lang.String value) {
          addCriterion("url", value, ConditionMode.GREATER_THEN, "url", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUrlGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.GREATER_EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUrlLessThan(java.lang.String value) {
          addCriterion("url", value, ConditionMode.LESS_THEN, "url", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUrlLessThanOrEqualTo(java.lang.String value) {
          addCriterion("url", value, ConditionMode.LESS_EQUAL, "url", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUrlBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("url", value1, value2, ConditionMode.BETWEEN, "url", "java.lang.String", "String");
    	  return this;
      }

      public UpmsRuleSqlBuilder andUrlNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("url", value1, value2, ConditionMode.NOT_BETWEEN, "url", "java.lang.String", "String");
          return this;
      }
        
      public UpmsRuleSqlBuilder andUrlIn(List<java.lang.String> values) {
          addCriterion("url", values, ConditionMode.IN, "url", "java.lang.String", "String");
          return this;
      }

      public UpmsRuleSqlBuilder andUrlNotIn(List<java.lang.String> values) {
          addCriterion("url", values, ConditionMode.NOT_IN, "url", "java.lang.String", "String");
          return this;
      }
}